<?php
$name='name'.$this->session->userdata['data_language'];
$content='description'.$this->session->userdata['data_language'];

$post_name='subject'.$this->session->userdata['data_language'];
	
?>
<div class="main-l fll">
	<div class="breakcrum ov-h clb">
    	<div class="title">
    		<span>
    			<a href="<?php echo base_url();?>home" class="home"><?php echo $this->lang->line('system_home'); ?></a>
    			<!--<a href="<?php echo base_url();?>categories"><?php echo $this->lang->line('system_news'); ?></a>-->
    			
    			<a href="<?php echo base_url();?>gallery/listvideo">Videos</a>
    			
    		</span>
    	</div>
    </div>
    <div class="detail-other ul-none ul-hot clb ov-h" style="border-bottom:1px solid #CCCCCC;">
    	<h3>Videos</h3>
    	<ul style="padding-left:25px">
    	<?php
    		foreach ($list as $item){
		?>
			<li><a href="javascript:void(0);" onclick="viewVideo('<?php echo $item['ten_file_video']; ?>');"><?php echo $item['ten_dat']; ?></a></li>
		<?php
    		}
    	?>
        </ul>
    </div>
    <div class="clb"></div>
    
    <div class="detail mb-15 clb ov-h" id="div_post_content" style="padding-top:15px;text-align:center;">
    	<iframe width="560" height="315" frameborder="0" allowfullscreen src="http://www.youtube.com/embed/veIDLnh2C9s"></iframe>
    </div>
	
</div>

<script type="text/javascript">
function viewVideo(url){
	var video='<iframe width="560" height="315" frameborder="0" allowfullscreen src="'+url+'"></iframe>';
	$('#div_post_content').html(video);
//$.post(
//		"<?php echo base_url ();?>categories/postDetail/"+id,
//		function(data){
//			$('#div_post_content').html(data);
//		}
//	);
}
</script>